package com.wuye.parking.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.wuye.parking.mapper.WyRegionMapper;
import com.wuye.parking.domain.WyRegion;
import com.wuye.parking.service.IWyRegionService;

/**
 * 区域Service业务层处理
 * 
 * @author avalon
 * @date 2024-11-23
 */
@Service
public class WyRegionServiceImpl extends ServiceImpl<WyRegionMapper, WyRegion> implements IWyRegionService
{
    @Autowired
    private WyRegionMapper wyRegionMapper;

    /**
     * 查询区域
     * 
     * @param regionId 区域主键
     * @return 区域
     */
    @Override
    public WyRegion selectWyRegionByRegionId(Long regionId)
    {
        return wyRegionMapper.selectWyRegionByRegionId(regionId);
    }

    /**
     * 查询区域列表
     * 
     * @param wyRegion 区域
     * @return 区域
     */
    @Override
    public List<WyRegion> selectWyRegionList(WyRegion wyRegion)
    {
        return wyRegionMapper.selectWyRegionList(wyRegion);
    }

    /**
     * 新增区域
     * 
     * @param wyRegion 区域
     * @return 结果
     */
    @Override
    public int insertWyRegion(WyRegion wyRegion)
    {
        return wyRegionMapper.insertWyRegion(wyRegion);
    }

    /**
     * 修改区域
     * 
     * @param wyRegion 区域
     * @return 结果
     */
    @Override
    public int updateWyRegion(WyRegion wyRegion)
    {
        return wyRegionMapper.updateWyRegion(wyRegion);
    }

    /**
     * 批量删除区域
     * 
     * @param regionIds 需要删除的区域主键
     * @return 结果
     */
    @Override
    public int deleteWyRegionByRegionIds(Long[] regionIds)
    {
        return wyRegionMapper.deleteWyRegionByRegionIds(regionIds);
    }

    /**
     * 删除区域信息
     * 
     * @param regionId 区域主键
     * @return 结果
     */
    @Override
    public int deleteWyRegionByRegionId(Long regionId)
    {
        return wyRegionMapper.deleteWyRegionByRegionId(regionId);
    }
}
